<div class="cl-cantainer container">
    <div class="row">
{{--       改成下面的12了，原始： <div class="col-md-9 cl-left">--}}
        <div class="col-md-12 cl-left">
                <div class="cl-artical-content">
                    <h2 class="cl-artical-title">{{$data['title']}}</h2>
                    <div class="cl-card-tag">
                        <div><span>{{$data->views}}</span>人浏览 / <span>{{$commentnum}}</span>条评论</div>
                    </div>
                    <div class="cl-artical">
                        <p>
                            {{$data['content']}}
                        </p>
                    </div>
                </div>

            <div class="comment">
                <form class="cl-comment-from" action="/comment" method="post">
                    @csrf
                    <div><textarea placeholder="说点什么吧..." rows="1" name="comment"></textarea></div>
                    <input type="hidden" name="blog_id" value="{{$data['blog_id']}}">
                    <input type="hidden" name="user_id" value="{{$user['user_id']}}">
                    <button type="submit">留言</button>
                    <span class="clearfix"></span>
                </form>

                <h4 class="right-card-title">全部评论</h4>
                @foreach($commentdata as $v)
                    <div class="comment-panel">
                        <div class="comment-panel-portrait">
                            <img src="img/portrait.png" class="img-fluid rounded-circle" alt="">
                        </div>
                        <div class="comment-panel-content">
                            <div class="comment-panel-content-item">
                                <div class="comment-author">匿名用户</div>
                                <div>{{$v['created_at']}}</div>
                            </div>
                            <div class="comment-panel-content-main">{{$v['content']}}</div>
                        </div>
                        <span class="clearfix"></span>
                        <div class="text-primary"><a href="/deletcomment?id={{$v->comment_id}}">删除</a></div>
                    </div>
                @endforeach


            </div>

        </div>
    </div>
</div>
